package thread;

public class ThreadDemo21 {
    public static void main(String[] args) {
        Object loker = new Object();
        Thread t = new Thread(()-> {
            synchronized (loker) {
                synchronized (loker) {
                    System.out.println("hello");
                }
            }
        });

        t.start();

    }
}
